package ai.restosuite.infrastructure.operation.listen;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.DelegateTask;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.camunda.bpm.engine.delegate.TaskListener;

import java.util.List;

public class AssignListener implements TaskListener {

    @Override
    public void notify(DelegateTask delegateTask) {
        String assignee = delegateTask.getAssignee();
        //任务审批通知
        System.out.println("----------任务审批通知------------：" + assignee + "审批任务链接：http://localhost:8080/camunda/app/tasklist" + "实例id:"+delegateTask.getProcessInstanceId());
    }
}
